package com.wm.springcloud.service;

import com.wm.entities.Payment;
import com.wm.springcloud.dao.PaymentDao;
import com.wm.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName:PaymenServiceImpl
 * @Description:
 * @Author:Deamer
 * @Date:2021/5/9 23:03
 **/
@Service
public class PaymenServiceImpl implements PaymentService {
    @Resource
    PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
